package org.jeecg.modules.business.takestockplan.entity.VO;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 盘点执行VO
 * @Author: jeecg-boot
 * @Date:   2023-08-04
 * @Version: V1.0
 */
@Data
public class TakeStockPlanExecuteVO implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "org_code")
    private String sysOrgCode;
	/**盘点任务id*/
    @ApiModelProperty(value = "盘点任务id")
    private String wmsTakeStockPlanId;
	/**盘点作业编号*/
    @ApiModelProperty(value = "盘点作业编号")
    private String code;
	/**盘点日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "盘点日期")
    private Date executeDate;
	/**单据状态*/
    @ApiModelProperty(value = "单据状态")
    @Dict(dicCode = "take_stock_plan_status")
    private String documentStatus;
	/**生成盘盈或盘亏单*/
    @ApiModelProperty(value = "生成盘盈或盘亏单")
    private String generateFlag;
	/**盘盈单id*/
    @Dict(dictTable = "wms_take_stock_result", dicText = "code", dicCode = "id")
    @ApiModelProperty(value = "盘盈单id")
    private String inventoryGainId;
	/**盘亏单id*/
    @Dict(dictTable = "wms_take_stock_result", dicText = "code", dicCode = "id")
    @ApiModelProperty(value = "盘亏单id")
    private String inventoryLossId;
	/**租户id*/
    @ApiModelProperty(value = "租户id")
    private Integer tenantId;
	/**逻辑删除*/
    @ApiModelProperty(value = "逻辑删除")
    @TableLogic
    private Integer delFlag;

    /**计划盘点日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "计划盘点日期")
    private Date planTime;
    /**盘点任务编号*/
    @ApiModelProperty(value = "盘点任务编号")
    private String takeStockPlanCode;
    /**盘点任务名称*/
    @ApiModelProperty(value = "盘点任务名称")
    private String takeStockPlanName;
    /**盘点仓库*/
    @Dict(dictTable = "wms_basic_warehouse", dicText = "code", dicCode = "id")
    @ApiModelProperty(value = "盘点仓库id")
    private String wmsBasicWarehouse;
    /**库区id*/
    @Dict(dictTable = "wms_basic_warehouse_area", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "盘点库区id")
    private String wmsBasicWarehouseArea;
    /**盘点物料分类id*/
    @Dict(dictTable = "wms_basic_material_type", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "盘点物料分类id")
    private String materialTypeId;
    /**盘点物料id*/
    @Dict(dictTable = "wms_basic_material", dicText = "code", dicCode = "id")
    @ApiModelProperty(value = "盘点物料id")
    private String materialId;
    /**货主类型*/
    @Dict(dicCode = "wms_owner_of_cargo")
    @ApiModelProperty(value = "货主类型")
    private String ownerType;
    /**货主*/
    @ApiModelProperty(value = "货主")
    private String owner;

    /**是否是最新一次盘点作业,0 否, 1 是*/
    @ApiModelProperty(value = "是否是最新一次盘点作业,0 否, 1 是")
    private String isNew;

    /**仓库组id*/
    @Dict(dictTable = "wms_basic_warehouse_group", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "仓库组id")
    private String wmsBasicWarehouseGroupId;

    /**仓管员*/
    @ApiModelProperty(value = "仓管员")
    private String userId;

    /**盘点类型*/
    @Dict(dicCode = "take_stock_type")
    @ApiModelProperty(value = "盘点类型")
    private String type;

    /**盘点方式*/
    @Dict(dicCode = "wms_take_stock_method")
    @ApiModelProperty(value = "盘点方式")
    private String runType;

    /**组织*/
    @ApiModelProperty(value = "组织")
    private String organization;

    /**批次号*/
    @ApiModelProperty(value = "批次号")
    private String batchCode;

    /**盘盈入库单号*/
    @ApiModelProperty(value = "盘盈入库单号")
    private String inReceiptCode;
    /**盘亏出库单号*/
    @ApiModelProperty(value = "盘亏出库单号")
    private String outReceiptCode;

    /**打印链接*/
    @ApiModelProperty(value = "打印链接")
    private String url;
}
